package com.open.capacity.user.dao;

import com.open.capacity.common.model.TitleRule;
import jdk.internal.org.objectweb.asm.tree.analysis.SourceValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author liutao
 * @date 2021-02-23 10:02
 */
@Mapper
public interface TitleRuleDao {
    List<TitleRule> getSelectTitleRules(Map<String, Object> params);

    int count(Map<String, Object> params);

    int addTitleRules(TitleRule titleRule);

    int updateTitleRules(TitleRule titleRule);

    int delTitleRules(int ttruid);

    Integer isCodeExist(@Param("ttcode") String ttcode,@Param("ttruid") Integer ttruid);

    Integer isPointsExist(@Param("points") Integer points, @Param("ttruid") Integer ttruid, @Param("typeId")Integer typeId, @Param("roleId")Integer roleId);
}
